{"version":3,"file":"linkurl.bundle.map.js","names":["this","BX","Landing","UI","exports","landing_ui_field_textfield","main_core","ui_entitySelector","_","t","_t","_t2","LinkUrl","Text","constructor","data","super","matchers","catalogElement","RegExp","catalogSection","catalog","element","block","page","crmForm","crmPhone","diskFile","user","system","pageOld","typePostfix","skype","typeHrefs","TYPE_HREF_PAGE","TYPE_HREF_BLOCK","form","TYPE_HREF_CRM_FORM","product","TYPE_HREF_PRODUCT","file","TYPE_HREF_FILE","start","TYPE_HREF_START","TYPE_HREF_USER","Dom","addClass","layout","requestOptions","options","disableBlocks","Type","isBoolean","disallowType","iblocks","isArray","allowedTypes","TYPE_BLOCK","TYPE_PAGE","length","constantType","constantTypeData","typeData","allowedCatalogEntityTypes","onInitHandler","isFunction","onInit","onNewPageHandler","onNewPage","enableAreas","customPlaceholder","detailPageMode","sourceField","currentPageOnly","panelTitle","onListShow","bind","onTypeChange","onListItemClick","popup","dynamic","value","hrefTypeSwithcer","createTypeSwitcher","hrefTypeSwithcerValue","getHrefStringType","grid","createGridLayout","gridLeftCell","querySelector","gridCenterCell","gridRightCell","remove","header","append","hidden","input","settingMode","isUndefined","rightData","getRightData","button","createCenterCellButton","contentEditable","subscribe","hideInput","emit","hrefStringType","right","getValue","DELETE_TYPE_HREF","deleteTypeHref","innerHTML","setValue","getTypeData","setEditPrevented","type","setHrefPlaceholderByType","setHrefTypeSwitcherValue","removeHrefTypeFromHrefString","makeDisplayedHrefValue","content","innerText","setIblocks","actionClick","hasOwnProperty","action","onclick","buttonClasses","className","Button","BaseButton","text","onClick","hrefValue","placeholderType","getPlaceholderType","valuePromise","getBlockData","getPageData","TYPE_CRM_FORM","getCrmFormData","TYPE_CRM_PHONE","getCrmPhoneData","TYPE_CATALOG_ELEMENT","getCatalogElementData","TYPE_CATALOG_SECTION","getCatalogSectionData","TYPE_DISK_FILE","getDiskFileData","TYPE_USER","getUserData","TYPE_SYSTEM","getSystemPage","TYPE_CATALOG","getCatalog","then","Utils","proxy","createPlaceholder","inited","catch","getPlaceholderData","Promise","resolve","clearHref","replace","getSelectedHrefType","title","getRightTitle","items","getRightItems","getRightButton","getRightHideInput","idPopup","Loc","getMessage","_self","_blank","_popup","TYPE_HREF_TEL","needValidate","TYPE_HREF_SMS","TYPE_HREF_SKYPE","TYPE_HREF_MAILTO","TYPE_HREF_LINK","onDiskFileShow","onUserListShow","segment","getValueText","foundHrefStringType","matchHrefStringType","setHrefTypes","isFindHrefType","some","hrefType","includes","segmentType","join","split","test","placeholder","attr","containsPlaceholder","indexOf","Tag","render","onSelectHrefButtonClick","popupActions","show","Env","getInstance","getType","name","delimiter","setItems","forEach","item","push","Field","Dropdown","onValueChange","maxHeight","classForTextNode","field","blockId","match","Backend","getBlock","result","pageId","getLanding","landingId","landing","toNumber","id","siteId","Main","site_id","ID","TITLE","SITE_ID","formId","find","String","NAME","phoneId","getOptions","references","cache","remember","systemCode","systemPages","syspages","reject","elementId","isString","requestBody","section","sectionId","matchRes","fileId","userData","userId","ajax","url","method","dataType","onsuccess","response","onSelectButtonClick","close","Panel","Catalog","dynamicMode","source","DetailPage","panel","URLList","parent","Connector","Disk","openDialog","onSelect","dialog","Dialog","targetNode","enableSearch","context","entities","events","onSelectUser","multiple","popupOptions","targetContainer","document","body","selectedItem","getSelectedItems","fireEvent","isEditPrevented","editPrevented","enableEdit","prototype","apply","encodeDataValue","placeholderRemove","Event","onPlaceholderRemoveClick","chain","capitalize","subType","setAttribute","event","removeClass","target","parentNode","onInputHandler","resultPromise","getNewLabel","newLabel","create","tag","props","showNewLabel","style","position","overflow","hideNewLabel","preventEvent","isObject","isNil","disableEdit","dataSet","getInputInnerText","onValueChangeHandler","getDynamic","valueText","selectedHrefType","validateValue","prepareInputField","startsWith","slice","setRegs","readyToSave","reg","isValid","inputValue","allowedHrefTypes","prepareInputInnerText","toString","trim","EntitySelector"],"sources":["linkurl.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,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